package com.baikeyang.common.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 参加报名活动的用户
 * </p>
 *
 * @author BaiKeyang
 * @since 2020-05-24
 */
@TableName("t_activity_user_join")
public class ActivityUserJoin extends Model<ActivityUserJoin> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField("USER_ID")
    private Long userId;

    /**
     * 活动ID
     */
    @TableField("ACTIVITY_ID")
    private Long activityId;

    /**
     * 姓名
     */
    @TableField("USER_NAME")
    private String userName;

    /**
     * 性别
     */
    @TableField("GENDER")
    private Integer gender;

    /**
     * 身份证
     */
    @TableField("ID_CARD")
    private String idCard;

    /**
     * 手机号
     */
    @TableField("TEL")
    private String tel;

    /**
     * 状态(0审核、1正常、2锁定、99用户自主取消、100管理取消、)
     */
    @TableField("STATE")
    private Integer state;

    @TableField("CREATE_USER")
    private Long createUser;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private Date createTime;

    @TableField("UPDATE_USER")
    private Long updateUser;

    @TableField("UPDATE_TIME")
    private Date updateTime;

    @TableField(exist = false)
    private String openId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "ActivityUserJoin{" +
        "id=" + id +
        ", userId=" + userId +
        ", activityId=" + activityId +
        ", userName=" + userName +
        ", gender=" + gender +
        ", idCard=" + idCard +
        ", tel=" + tel +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        "}";
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }
}
